refactor(runtime): unify local entrypoint ownership - #1833
Merged
limityan merged 1 commit intoJul 28, 2026
Conversation
limityan
force-pushed
the
yanzhn/runtime-ownership-entrypoints
branch
from
July 28, 2026 13:27
82ec5de to
b994f7a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--sharedAgentSessionCreateResult, while preserving the SDK Host protocol adapter and Desktop wire compatibilityEntrypoint model
Read-only session listing and viewing do not acquire ownership. Session mutation, restore, or attach paths do. Shared ownership is exclusive per canonical workspace and product; compatible Embedded processes can coexist.
Compatibility and safety
workspaceHostname=localhostremain local because host data is carried only with an explicit remote connection identity.gitand runtime roots protected, and use case-insensitive scope checks on WindowsDuring rebase, upstream added deferred session/worktree isolation. The merged restore order is intentionally:
Documentation
The runtime deployment, Agent SDK product, and product architecture documents now include entrypoint and ownership diagrams. PR-specific design and execution notes remain local under
.tmpand are not included.Size
Validation
cargo check --locked --workspacecargo test --locked -p bitfun-core -p bitfun-desktopTEMPandTMPpointing through a Windows junctionRemoteConnectDialog.contract.test.tspnpm run type-check:webpnpm run lint:webgit diff --check gcwing/main...HEADThe branch was rebased onto
gcwing/main@93c39eae6; upstream's readable managed-worktree naming and Task subagent cancellation changes remain intact. Independent architecture and product reviews were run against the complete diff. Their path-safety, Write payload, Delete symlink, Windows case-folding, and historical localhost-session findings were fixed and covered before final approval (P0/P1/P2 = 0 in both reviews).